cities = {'CA': 'San Francisco', 'MI': 'Detroit', 'FL': 'Orlando', 'NY': 'New York', 'OR': 'Portland'}

def find_city(themap, state):
	if state in themap:
	
	# themap is all the states
		return themap[state]
	else:
		return "Not found."
		
# variable becomes the function.
cities['_find'] = find_city

while True:
	print "State? (ENTER to quit)",	
	state = raw_input("> ")
	
	#evaluates to see if state entered is in the dictionary.
	if not state: break
	
	city_found = cities['_find'] (cities, state)
	print city_found
	
